package cn.getech.data.development.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.HashMap;

/**
 * @author ：zhibin3.liang
 * @version : 1.0
 * @date ：Created in 2021/9/27 15:52
 * @description：
 */
@ApiModel(description = "ES全局搜索配置信息表")
@Data
@TableName("es_global_search_config")
public class EsSearch {

//    @ApiModelProperty(value = "主键")
//    @TableId
//    private Long id;

    @ApiModelProperty(value = "表所属的分组")
    private Long groupId;

    @ApiModelProperty(value = "表所属的分组名称")
    private String groupName;

    @TableField(exist = false)
    @ApiModelProperty(value = "路由跳转路径")
    private String url;

    @ApiModelProperty(value = "菜单ID")
    private Long menuId;

    @ApiModelProperty(value = "父菜单ID")
    private Integer parentId;

    @ApiModelProperty(value = "跳转所需的参数 ;分隔")
    private String urlParam;

    @ApiModelProperty(value = "原参数键key ;分隔")
    private String originParam;

    @ApiModelProperty(value = "跳转所需的参数 ;分隔")
    private HashMap<String, Object> urlParamMap;

    @TableField(exist = false)
    @ApiModelProperty(value = "匹配字段")
    private String matchWord;

    @TableField(exist = false)
    @ApiModelProperty(value = "高亮字段")
    private String highlightWord;

    @TableField(exist = false)
    @ApiModelProperty(value = "菜单来源-层级树")
    private ArrayList<String> menuSource;

    @TableField(exist = false)
    @ApiModelProperty(value = "匹配分数")
    private float score;

    @ApiModelProperty(value = "弹窗标志位  0:不弹窗 1:弹窗")
    private Integer popStatus;

}
